library pp_log;

import 'package:logger/logger.dart';

class PPLog {
  final _logger = Logger(
      printer: PrettyPrinter(
    methodCount: 0,
    printEmojis: false,
  ));

  PPLog._();

  static final _instance = PPLog._();

  factory PPLog.getInstance() => _instance;

  static void install() {
    PPLog.getInstance()._logger.d("Logger is working!");
  }

  static void d(String log) {
    // debugPrint(log);
    PPLog.getInstance()._logger.d(log);
  }

  static void e(String log) {
    PPLog.getInstance()._logger.e(log);
  }
}
